#include<iostream>
using namespace std;

class Data
{
public:
	Data(int year, int month, int day)
	{
		_year = year;
		_month = month;
		_day = day;
	}
	void print()
	{
		cout << _year<<"/" << _month << "/" << _day << endl;
	}
	bool operator<(Data cut)
	{
		return (*this)._year < cut._year
			|| (*this)._month < cut._month
			|| (*this)._day < cut._day;
	}
private:
	int _year = 1;
	int _month = 1;
	int _day = 1;
};
//operator
int main()
{
	Data d1(2023, 4, 10);
	d1.print();
	Data d2(2023, 5, 9);
	cout << (d1 < d2) << endl;
	return 0;
}